﻿using System;

using Microsoft.Xna.Framework;

namespace Spacer
{
	public class Generator
	{
		public Generator()
		{
			Seed = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
			Seed = Globals.GetRandomRange( 0, (Seed < 0 ? -Seed : Seed) );

			Random = new Random(Seed);
		}

		public Generator(int seed)
		{
			Seed = seed;
			Random = new Random(Seed);
		}

		// ----------

		public virtual void Generate()
		{
		}

		// ----------

		public int Seed { get; private set; }
		protected Random Random { get; private set; }
	}
}
